cc=g++
LD=#-DMYSELF
.PHONY:all
all:calServer calClient

calServer:calServer.cc
	$(cc) -o $@ $^ -lpthread -ljsoncpp -std=c++11 ${LD}
calClient:calClient.cc
	$(cc) -o $@ $^ -lpthread -ljsoncpp -std=c++11 ${LD}

.PHONY:clean
clean:
	rm -rf calServer calClient

#()表示使用定义的变量